package com.weitu.occupationalHealth.account.service.impl;

import com.weitu.occupationalHealth.account.entity.Account;
import com.weitu.occupationalHealth.account.mapper.AccountMapper;
import com.weitu.occupationalHealth.account.service.AccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class AccountServiceImpl implements AccountService {
    @Autowired
    private AccountMapper accountMapper;

    @Override
    public Account selectById(String id) {
        return this.accountMapper.selectById(id);
    }

    @Override
    public int deleteById(String id) {
        return this.accountMapper.deleteById(id);
    }

    @Override
    public int updateByIdSelective(Map record) {
        return this.accountMapper.updateByIdSelective(record);
    }

    @Override
    public int insertSelective(Map record) {
        return this.accountMapper.insertSelective(record);
    }

    @Override
    public List<Account> selectAccount(Map map) {
        return this.accountMapper.selectAccount(map);
    }

    @Override
    public int selectAccountCount(Map map) {
        return this.accountMapper.selectAccountCount(map);
    }
}